package torch;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Torch {


    public void on(){
        System.out.println("打开");
    }
    public void off(){
        System.out.println("关闭");
    }
    public void charging(int power){
        for (int i = 0; i < 10; i++) {
            power++;
            System.out.println("充电中，电量："+power);
        }

    }


    public static void main(String[] args) {
        Torch torch = new Torch();
        torch.on();
        torch.off();
        torch.charging(6);
    }

}
